home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form wndEarth
- Caption = "Take a trip in a 747 to see the world"
- ClientHeight = 4020
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- Height = 4425
- Left = 1035
- LinkTopic = "Form1"
- Picture = TRANSP.FRX:0000
- ScaleHeight = 268
- ScaleMode = 3 'Pixel
- ScaleWidth = 491
- Top = 1140
- Width = 7485
- Begin PictureBox picAngel
- AutoSize = -1 'True
- Height = 3750
- Left = 1080
- Picture = TRANSP.FRX:165BA
- ScaleHeight = 3720
- ScaleWidth = 1785
- TabIndex = 3
- Top = 3000
- Visible = 0 'False
- Width = 1815
- End
- Begin CommandButton cmdTrip
- BackColor = &H00000000&
- Caption = "Go!"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 495
- End
- Begin PictureBox picPlane
- AutoSize = -1 'True
- ClipControls = 0 'False
- Height = 1020
- Index = 2
- Left = 240
- Picture = TRANSP.FRX:1A054
- ScaleHeight = 66
- ScaleMode = 3 'Pixel
- ScaleWidth = 149
- TabIndex = 1
- Top = 960
- Visible = 0 'False
- Width = 2265
- End
- Begin PictureBox picPlane
- AutoSize = -1 'True
- ClipControls = 0 'False
- Height = 1020
- Index = 1
- Left = 120
- Picture = TRANSP.FRX:1B466
- ScaleHeight = 66
- ScaleMode = 3 'Pixel
- ScaleWidth = 149
- TabIndex = 0
- Top = 720
- Visible = 0 'False
- Width = 2265
- End
- Option Explicit
- Sub cmdTrip_Click ()
- Dim iLeft As Integer
- Dim iTop As Integer
- Screen.MousePointer = 11
- ' Make sure the picture-property contains a valid
- ' bitmap-handle
- picPlane(1).Picture = picPlane(1).Image
- picPlane(2).Picture = picPlane(2).Image
- picAngel.Picture = picAngel.Image
- ' Show persisent picture of angel in upper right corner
- ' This will definitively change the bitmap, so if you like
- ' to keep the original bitmap intact, keep a copy of it in
- ' a picture-box
- ' Persistent pictures require AutoRedraw=TRUE
- wndEarth.AutoRedraw = -1
- LoadTransparantBitmap wndEarth.hDC, picAngel.Picture, 7, 72, 200
- wndEarth.AutoRedraw = 0
- ' Show the changed picture
- wndEarth.Refresh
- ' Set bitmap of Image property a bitmap-handle
- wndEarth.Picture = wndEarth.Image
- iLeft = wndEarth.ScaleWidth
- iTop = 50
- Do While iTop < 450
- 'Fly plane left
- Do While iLeft > -picPlane(1).ScaleWidth
- MoveTransparantBitmap wndEarth.hDC, wndEarth.Picture, 0, 0, picPlane(1).Picture, 7, iLeft + 5, iTop, iLeft, iTop
- iLeft = iLeft - 5
- Loop
- 'Fly plane right
- Do While iLeft < wndEarth.ScaleWidth
- MoveTransparantBitmap wndEarth.hDC, wndEarth.Picture, 0, 0, picPlane(2).Picture, 7, iLeft - 5, iTop + 100, iLeft, iTop + 100
- iLeft = iLeft + 5
- Loop
- iTop = iTop + 200
- Loop
- ' Remove all non-persistent drawings with Load- or MoveTransparantBitmap function
- ' The persistent graphics will stay on the screen
- wndEarth.Refresh
- Screen.MousePointer = 0
- End Sub
- Sub Form_Load ()
- WindowState = 2
- End Sub
-